<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
<xsl:template match="HeaderAndClass">



<html>
<head>
<title>GENNIT Readme for <xsl:value-of select="HeaderInfo/ProjectName"/> CakePHP Project</title>
    <style type="text/css">
    
        body { font-family: 'Century Gothic', 'Verdana'; font-size:14pt; }
        #title { font-size:22pt; margin-left:10px; }
        p { margin-left:10px; }
        ul li { margin-left:10px; margin-bottom:20px; }
        div.tip { border:solid 1px #c0c0c0; background-color:#FFFFDD; padding:10px; font-size:10pt; margin-left:40px; margin-right:40px; }
        span.code { font-family: 'Courier New'; }
	table { margin-left:20px; width:90%; border-collapse:collapse; }
	table tr td { border:solid 1px #f0f0f0; padding:10px; }
    </style>

</head>
<body>
<a href="http://www.gennit.com"><img src="http://www.gennit.com/img/logo.png" border="0" alt="GENNIT Logo (invisible if offline)" style="vertical-align:middle" /></a><div id="title"><xsl:value-of select="HeaderInfo/ProjectName"/> Project - README</div>



<p>
Hey! You've got the CakePHP template for your <xsl:value-of select="HeaderInfo/ProjectName"/> project downloaded. <a href="#quickStart">Jump to QuickStart</a>
</p>


<hr size="1" />
<p><strong>Generated File Information</strong></p>

    <table>
	<tr>
		<td><a href="README.html">README.html</a></td>
		<td>This file which lists files created and quick start.</td>
	</tr>
	<tr>
		<td><a href="app/webroot/gennit.html">app/webroot/gennit.html</a></td>
		<td>A static page  which lists all of the objects you have created and links to their scaffolding <strong>(once installed on your CakePHP server)</strong></td>
	</tr>
	<tr>
		<td><a href="database.sql">database.sql</a></td>
		<td>MySQL database schema for your objects. Run this on your MySQL database you create.</td>
	</tr>
	
	<tr>
		<td colspan="2"><strong>Controllers</strong><br/>Listed below are the controllers created for your project. Controllers manage the logic
		for your objects, as so their implementations are empty, except for <i>var $scaffold</i> which provides CakePHP scaffolding and an example action called get[Name]List (where [Name] in the object name - see the views further down for more information). For more information
		about controllers see the <a href="http://manual.cakephp.org/chapter/controllers">CakePHP Controllers Manual</a></td>
	</tr>
	
<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">app/controllers/<xsl:value-of select="LName"/>s_controller.php</xsl:attribute>app/controllers/<xsl:value-of select="LName"/>s_controller.php</a></td>
		<td><xsl:value-of select="Name"/> controller.</td>
	</tr>
</xsl:for-each>


	<tr>
		<td colspan="2"><strong>Models</strong><br/>Listed below are the models created for your project. Models are generally access points
to your underlying database. The contain the definitions for associations between objects. You can extend the models to include domain logic. For more information
		about models see the <a href="http://manual.cakephp.org/chapter/models">CakePHP Models Manual</a></td>
	</tr>
	
<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">app/models/<xsl:value-of select="LName"/>.php</xsl:attribute>app/models/<xsl:value-of select="LName"/>.php</a></td>
		<td><xsl:value-of select="Name"/> model.</td>
	</tr>
</xsl:for-each>	
	
	<tr>
		<td colspan="2"><strong>Views</strong><br/>Listed below are the views created for your project. A view is a page template that is normally named after an action from its
related controller. GENNIT has created a demo action in each controller named get[Name]List, where [Name] is the name of the controller. For more information
		about models see the <a href="http://manual.cakephp.org/chapter/views">CakePHP Views Manual</a></td>
	</tr>
	
<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">app/views/<xsl:value-of select="LName"/>s/get_<xsl:value-of select="LName"/>_list.php</xsl:attribute>
		app/views/<xsl:value-of select="LName"/>s/get_<xsl:value-of select="LName"/>_list.php</a></td>
		<td>An example view template for the get<xsl:value-of select="Name"/>List action in the app/controllers/<xsl:value-of select="LName"/>s_controller.php file.</td>
	</tr>
</xsl:for-each>
	
    </table>

 <hr size="1" />
    <p><strong><a name="quickStart">Quick Start Guide</a></strong></p>
    <ul>
	<li>Ensure you have installed CakePHP properly, follow the <a href="http://manual.cakephp.org/chapter/installing">Installing CakePHP</a> page and 
	Section 1 of <a href="http://manual.cakephp.org/chapter/configuration">Configuring CakePHP</a>, until the root page of your CakePHP installation tells you "Cake is able to connect to the database.".</li>
	<li>Run <a href="database.sql">database.sql</a> on the database you are using for this installation.</li>
	<li>Copy the 'app' directory of your GENNIT project over the top of your cake installation app folder.</li>
	<li>Visit http://[cakeroot]/gennit.html replacing [cakeroot] with the location on your server for the Cake installation. For example, http://localhost/cake/gennit.html if your cake installation was on localhost in the folder /cake/.</li>
	
    </ul>
    <hr style="1" />
    If you have any problems check the <a href="http://forums.gennit.com">GENNIT Forums</a> for limited support.
    <br/><br/><br/><br/>
</body>
</html>

    </xsl:template>
  

</xsl:stylesheet>
